<template>
  <div class="supplier-product-box-list">
    <supplier-product-box v-for="(product,index) in productList" :key="index" :product-detail="product"/>
  </div>
</template>

<script>
import SupplierProductBox from './SupplierProductBox'
export default {
  name: 'SupplierProductBoxList',
  components: {SupplierProductBox},
  props:{
    productListParams:Array
  },
  data:function () {
    return {
      productList:[]
    }
  },
  mounted () {
    this.productList=this.$props.productListParams
  },
  methods:{
    setList:function (productList) {
      this.productList=productList
      this.$forceUpdate()
    }
  }
}
</script>

<style scoped>

</style>
